package com.kwan.x_im.data.http;

import com.jeremyliao.liveeventbus.core.LiveEvent;
import com.kwan.xframe.mvvm.data.source.http.HttpResult;

/**
 * @author kwan
 * @date 2023/2/17 11:33
 * @Describe
 */
public class HttpEvent<T> implements LiveEvent {

	public boolean isSuccess;

	public HttpResult<T> data;

	public HttpEvent(boolean isSuccess, HttpResult<T> data, ApiService.FUNC func) {
		this.isSuccess = isSuccess;
		this.data = data;
		this.func = func;
	}

	public String getMsg(){
		return data.getMessage();
	}

	public T getData(){
		return data.getData();
	}

	public ApiService.FUNC func;
}
